/**
 * 2018年11月27日下午2:24:17
 * @author 谢进财
 */
package com.baihang.project.ds.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.baihang.framework.controller.BaseController;
import com.baihang.project.ds.service.SmsLogService;

/**
 * 短信日志
 *
 */
@Controller
@RequestMapping("/smslog")
public class SmsLogController extends BaseController {
		@Autowired
		private SmsLogService service;
		
		@RequestMapping
		public String index() {
						
			return "/project/ds/smslog/index";
		}
		
		@RequestMapping(value ="/getGrid", produces="application/json;charset=UTF-8")
		@ResponseBody
		public String getGrid(int page,int pagesize,String sortname,String sortorder) {
			String grid = service.getGrid(page,pagesize,sortname,sortorder);
			//System.out.println(grid);
			return grid;
		}
		
}
